import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 获取流程详情
export function queryJobByJobId(params){
    return axios({
        url: assessCheckApi.queryJobByJobId,
        method:'get' ,
        params:{...params},
        url_1:'outside',
    })
}

// 打印查询
export function queryBatchYbjcyList(params){
    return axios({
        url: assessCheckApi.queryBatchYbjcyList,
        method:'get' ,
        params:{...params},
        url_1:'outside',
    })
}

export function downMyQm(params){
    return axios({
        url: assessCheckApi.downMyQm,
        method:'get' ,
        params:{...params},
        responseType:"arraybuffer",
        url_1:'outside',
    })
}

// 保存流程
export const saveFlow = function(data) {
    return axios({
        url: assessCheckApi.saveFlow,
        data: data,
        method: "post",
        url_1:'outside',
    });
}

// 提交流程
export const submitFlow = function(data) {
    return axios({
        url: assessCheckApi.submitFlow,
        data: data,
        method: "post",
        url_1:'outside',
    });
}

// 退回流程
export const returnUpperFlowJob = function(data) {
    return axios({
        url: assessCheckApi.returnUpperFlowJob,
        data: data,
        method: "post",
        url_1:'outside',
    });
}
